.class Lcom/estrongs/android/taskmanager/gr;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/estrongs/android/taskmanager/TaskManager;


# direct methods
.method constructor <init>(Lcom/estrongs/android/taskmanager/TaskManager;)V
    .locals 0

    iput-object p1, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 4

    const/4 v1, 0x1

    const/4 v0, 0x0

    packed-switch p3, :pswitch_data_0

    :goto_0
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->u(Lcom/estrongs/android/taskmanager/TaskManager;)V

    :goto_1
    return-void

    :pswitch_0
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->o(Lcom/estrongs/android/taskmanager/TaskManager;)V

    goto :goto_0

    :pswitch_1
    iget-object v1, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v1}, Lcom/estrongs/android/taskmanager/TaskManager;->p(Lcom/estrongs/android/taskmanager/TaskManager;)Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->q(Lcom/estrongs/android/taskmanager/TaskManager;)V

    goto :goto_0

    :cond_0
    iget-object v1, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {v1, v0}, Lcom/estrongs/android/taskmanager/TaskManager;->a(I)V

    goto :goto_0

    :pswitch_2
    iget-object v2, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v2}, Lcom/estrongs/android/taskmanager/TaskManager;->i(Lcom/estrongs/android/taskmanager/TaskManager;)Landroid/widget/TabHost;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/TabHost;->getCurrentTab()I

    move-result v2

    if-ne v2, v1, :cond_2

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v1, v0}, Lcom/estrongs/android/taskmanager/TaskManager;->a(Lcom/estrongs/android/taskmanager/TaskManager;I)V

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v1}, Lcom/estrongs/android/taskmanager/TaskManager;->r(Lcom/estrongs/android/taskmanager/TaskManager;)Lcom/estrongs/android/taskmanager/hq;

    move-result-object v1

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v2}, Lcom/estrongs/android/taskmanager/TaskManager;->s(Lcom/estrongs/android/taskmanager/TaskManager;)Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f070006

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/estrongs/android/taskmanager/hq;->a(Lcom/estrongs/android/taskmanager/hq;Ljava/lang/String;)V

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v1}, Lcom/estrongs/android/taskmanager/TaskManager;->r(Lcom/estrongs/android/taskmanager/TaskManager;)Lcom/estrongs/android/taskmanager/hq;

    move-result-object v1

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v2}, Lcom/estrongs/android/taskmanager/TaskManager;->s(Lcom/estrongs/android/taskmanager/TaskManager;)Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f020030

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/estrongs/android/taskmanager/hq;->a(Lcom/estrongs/android/taskmanager/hq;Landroid/graphics/drawable/Drawable;)V

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v1}, Lcom/estrongs/android/taskmanager/TaskManager;->i(Lcom/estrongs/android/taskmanager/TaskManager;)Landroid/widget/TabHost;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/widget/TabHost;->setCurrentTab(I)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->t(Lcom/estrongs/android/taskmanager/TaskManager;)Lcom/estrongs/android/taskmanager/hp;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/hp;->notifyDataSetChanged()V

    :cond_1
    :goto_2
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->e()V

    goto :goto_0

    :cond_2
    iget-object v2, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v2}, Lcom/estrongs/android/taskmanager/TaskManager;->i(Lcom/estrongs/android/taskmanager/TaskManager;)Landroid/widget/TabHost;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/TabHost;->getCurrentTab()I

    move-result v2

    if-nez v2, :cond_1

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    iget-boolean v2, v2, Lcom/estrongs/android/taskmanager/TaskManager;->e:Z

    if-nez v2, :cond_3

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0, v1}, Lcom/estrongs/android/taskmanager/TaskManager;->a(Lcom/estrongs/android/taskmanager/TaskManager;I)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->r(Lcom/estrongs/android/taskmanager/TaskManager;)Lcom/estrongs/android/taskmanager/hq;

    move-result-object v0

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v2}, Lcom/estrongs/android/taskmanager/TaskManager;->s(Lcom/estrongs/android/taskmanager/TaskManager;)Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f070005

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/estrongs/android/taskmanager/hq;->a(Lcom/estrongs/android/taskmanager/hq;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->r(Lcom/estrongs/android/taskmanager/TaskManager;)Lcom/estrongs/android/taskmanager/hq;

    move-result-object v0

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v2}, Lcom/estrongs/android/taskmanager/TaskManager;->s(Lcom/estrongs/android/taskmanager/TaskManager;)Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f020014

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/estrongs/android/taskmanager/hq;->a(Lcom/estrongs/android/taskmanager/hq;Landroid/graphics/drawable/Drawable;)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->i(Lcom/estrongs/android/taskmanager/TaskManager;)Landroid/widget/TabHost;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/widget/TabHost;->setCurrentTab(I)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->t(Lcom/estrongs/android/taskmanager/TaskManager;)Lcom/estrongs/android/taskmanager/hp;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/hp;->notifyDataSetChanged()V

    goto :goto_2

    :cond_3
    :try_start_0
    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    const-string v2, "com.android.settings"

    const-string v3, "com.android.settings.RunningServices"

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {v2, v1}, Lcom/estrongs/android/taskmanager/TaskManager;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_2

    :catch_0
    move-exception v1

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v1}, Lcom/estrongs/android/taskmanager/TaskManager;->s(Lcom/estrongs/android/taskmanager/TaskManager;)Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f0700d7

    invoke-static {v1, v2, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->u(Lcom/estrongs/android/taskmanager/TaskManager;)V

    goto/16 :goto_1

    :pswitch_3
    iget-object v2, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    iget-object v3, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v3}, Lcom/estrongs/android/taskmanager/TaskManager;->v(Lcom/estrongs/android/taskmanager/TaskManager;)Z

    move-result v3

    if-eqz v3, :cond_4

    :goto_3
    invoke-static {v2, v0}, Lcom/estrongs/android/taskmanager/TaskManager;->b(Lcom/estrongs/android/taskmanager/TaskManager;Z)V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->s(Lcom/estrongs/android/taskmanager/TaskManager;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "show_ignorelist"

    iget-object v2, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v2}, Lcom/estrongs/android/taskmanager/TaskManager;->v(Lcom/estrongs/android/taskmanager/TaskManager;)Z

    move-result v2

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->e()V

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->v(Lcom/estrongs/android/taskmanager/TaskManager;)Z

    move-result v0

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->w(Lcom/estrongs/android/taskmanager/TaskManager;)Lcom/estrongs/android/taskmanager/hq;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    const v2, 0x7f07002b

    invoke-virtual {v1, v2}, Lcom/estrongs/android/taskmanager/TaskManager;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/estrongs/android/taskmanager/hq;->a(Lcom/estrongs/android/taskmanager/hq;Ljava/lang/String;)V

    :goto_4
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->t(Lcom/estrongs/android/taskmanager/TaskManager;)Lcom/estrongs/android/taskmanager/hp;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/hp;->notifyDataSetChanged()V

    goto/16 :goto_0

    :cond_4
    move v0, v1

    goto :goto_3

    :cond_5
    iget-object v0, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    invoke-static {v0}, Lcom/estrongs/android/taskmanager/TaskManager;->w(Lcom/estrongs/android/taskmanager/TaskManager;)Lcom/estrongs/android/taskmanager/hq;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/taskmanager/gr;->a:Lcom/estrongs/android/taskmanager/TaskManager;

    const v2, 0x7f07002c

    invoke-virtual {v1, v2}, Lcom/estrongs/android/taskmanager/TaskManager;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/estrongs/android/taskmanager/hq;->a(Lcom/estrongs/android/taskmanager/hq;Ljava/lang/String;)V

    goto :goto_4

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_3
        :pswitch_0
        :pswitch_1
        :pswitch_2
    .end packed-switch
.end method
